package com.lzx.adx.report.enums;

import lombok.Getter;

public enum ViVoElemCovertEnum {
    register("2","REACTIVATION","注册"),
    firstPurchase("3","PAY","2424小时内首购，首笔订单"),
    firstPurchase2("8","PAY","当日首购-付费"),
    RETENTION_1("4","RETENTION_1","次留"),
    ;;

    @Getter
    private String code;

    @Getter
    private String vovoCode;

    @Getter
    private String msg;

    ViVoElemCovertEnum(String code, String vovoCode, String msg) {
        this.code = code;
        this.vovoCode = vovoCode;
        this.msg = msg;
    }


    public static String getViVoCode(String elmCode){
        ViVoElemCovertEnum[] values = ViVoElemCovertEnum.values();
        for (ViVoElemCovertEnum value : values) {
            if(value.getCode().equals(elmCode)){
                return value.vovoCode;
            }
        }
        return null;
    }
}
